Optimal. Leaf size=46 \[ \frac{b \cos (a) \text{CosIntegral}\left (b x^n\right )}{n}-\frac{b \sin (a) \text{Si}\left (b x^n\right )}{n}-\frac{x^{-n} \sin \left (a+b x^n\right )}{n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0887158, antiderivative size = 46, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.312, Rules used = {3379, 3297, 3303, 3299, 3302} \[ \frac{b \cos (a) \text{CosIntegral}\left (b x^n\right )}{n}-\frac{b \sin (a) \text{Si}\left (b x^n\right )}{n}-\frac{x^{-n} \sin \left (a+b x^n\right )}{n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3379
Rule 3297
Rule 3303
Rule 3299
Rule 3302
Rubi steps
\begin{align*} \int x^{-1-n} \sin \left (a+b x^n\right ) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\sin (a+b x)}{x^2} \, dx,x,x^n\right )}{n}\\ &=-\frac{x^{-n} \sin \left (a+b x^n\right )}{n}+\frac{b \operatorname{Subst}\left (\int \frac{\cos (a+b x)}{x} \, dx,x,x^n\right )}{n}\\ &=-\frac{x^{-n} \sin \left (a+b x^n\right )}{n}+\frac{(b \cos (a)) \operatorname{Subst}\left (\int \frac{\cos (b x)}{x} \, dx,x,x^n\right )}{n}-\frac{(b \sin (a)) \operatorname{Subst}\left (\int \frac{\sin (b x)}{x} \, dx,x,x^n\right )}{n}\\ &=\frac{b \cos (a) \text{Ci}\left (b x^n\right )}{n}-\frac{x^{-n} \sin \left (a+b x^n\right )}{n}-\frac{b \sin (a) \text{Si}\left (b x^n\right )}{n}\\ \end{align*}
Mathematica [A] time = 0.0743961, size = 47, normalized size = 1.02 \[ \frac{x^{-n} \left (b \cos (a) x^n \text{CosIntegral}\left (b x^n\right )-b \sin (a) x^n \text{Si}\left (b x^n\right )-\sin \left (a+b x^n\right )\right )}{n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.006, size = 44, normalized size = 1. \begin{align*}{\frac{b}{n} \left ( -{\frac{\sin \left ( a+b{x}^{n} \right ) }{b{x}^{n}}}-{\it Si} \left ( b{x}^{n} \right ) \sin \left ( a \right ) +{\it Ci} \left ( b{x}^{n} \right ) \cos \left ( a \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{-n - 1} \sin \left (b x^{n} + a\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.06855, size = 189, normalized size = 4.11 \begin{align*} \frac{b x^{n} \cos \left (a\right ) \operatorname{Ci}\left (b x^{n}\right ) + b x^{n} \cos \left (a\right ) \operatorname{Ci}\left (-b x^{n}\right ) - 2 \, b x^{n} \sin \left (a\right ) \operatorname{Si}\left (b x^{n}\right ) - 2 \, \sin \left (b x^{n} + a\right )}{2 \, n x^{n}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{-n - 1} \sin \left (b x^{n} + a\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]